package com.eastfair.venuebooking.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.eastfair.boot.mapper.SuperMapper;
import com.eastfair.venuebooking.dto.PriceListSaveDTO;
import com.eastfair.venuebooking.entity.PriceListSpace;

import com.eastfair.venuebooking.vo.PriceListSpaceVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * 价目表场地关联
 * </p>
 *
 * @author linan
 * @date 2022-06-08
 */
@Repository
public interface PriceListSpaceMapper extends SuperMapper<PriceListSpace> {

    /**
     * 查询价目场地列表.
     *
     * @param queryWrapper the query wrapper
     * @return the page
     */
    List<PriceListSpaceVO> listPriceListSpaces(@Param(Constants.WRAPPER)
                                                            QueryWrapper<PriceListSpace> queryWrapper);

    /**
     * 查询价目下的标签列表.
     *
     * @param priceListIds the price list ids
     * @return the list
     */
    List<String> listTags(@Param("priceListIds") List<Long> priceListIds);

    void insertPriceListSpaceIdList(PriceListSaveDTO priceListSaveDTO);

   void updateByPriceListId(Long priceListId);

   void updateAllByPriceList(@Param("priceListIds") List<Long> priceListIds);

}
